{extend name="frame/base" /}
{block name="body"}
<form action="{$url}" method="post">
    <label>钩子名称<input name="name" id="name" type="text" value="{$info['name']|default=''}"/>
    </label>
    <label>信息数量<input name="length" id="length" type="text" value="{$info['length']|default=''}"/>
    </label>
    <label>钩子链接<input name="href" id="href" type="text" value="{$info['href']|default=''}"/>
    </label>
    <label>关联栏目<select id="cate_id" name="cate_id">
        <option value="-1">发布时间</option>
        {volist name='catelist' id='cate'}
        <option value="{$cate['id']}">{$cate['name']}</option>
        {/volist}
    </select>
    </label>
    <label>排序<select id="sort" name="sort">
        <option value="id DESC">倒序</option>
        <option value="id DESC">正序</option>
    </select>
    </label>
    <input type="submit" value="保存" onclick="submit_form();return false">
</form>
<br>
<script>
    var type="{$info['type']|default=''}";
    $(function () {
        $("#type").val(type)
        $.datetimepicker.setLocale('ch');
        $('.some_class').datetimepicker({
            formatTime:'H:i',
            format:'Y-m-d H:i'
        });
    })
    function submit_form() {
        $("form").submit()
    }
</script>
{/block}
